﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CreateUserWizard.ascx.cs"
    Inherits="Admin_MemberAdmin_Controls_CreateUserWizard" %>
<%@ Register Src="RoleAssign.ascx" TagName="RoleAssign" TagPrefix="uc1" %>
<%@ Register Src="UserGroupAssign.ascx" TagName="UserGroupAssign" TagPrefix="uc2" %>
<%@ Register Src="OrgAssign.ascx" TagName="OrgAssign" TagPrefix="uc3" %>
<%@ Register Src="RegUserCtl.ascx" TagName="RegUserCtl" TagPrefix="uc4" %>
<asp:Wizard ID="wizard1" runat="server" StepPreviousButtonType="Link" StartNextButtonType="Link"
    StepNextButtonType="Link" ActiveStepIndex="0" CancelButtonType="Link" DisplayCancelButton="True"
    FinishCompleteButtonType="Link" FinishPreviousButtonType="Link" OnFinishButtonClick="wizard1_FinishButtonClick"
    Width="600px" SideBarStyle-Wrap="True" Height="440px" DisplaySideBar="False"
    BackColor="white">
    <WizardSteps>
        <asp:WizardStep runat="server" AllowReturn="False" Title="创建帐户" StepType="Start">
            <uc4:RegUserCtl ID="RegUserCtl1" runat="server" />
        </asp:WizardStep>
        <asp:WizardStep runat="server" Title="帐户设定">
            <fieldset>
                <legend>用户状态</legend>
                <asp:CheckBox ID="IsLockoutCheckBox" runat="server" Text="是否锁定" />
                <br />
                <asp:CheckBox ID="IsApprovedCheckBox" runat="server" Text="是否核准" Checked="true" />
            </fieldset>
        </asp:WizardStep>
        <asp:WizardStep runat="server" Title="分配角色">
            <fieldset>
                <legend>角色分配</legend>
                <uc1:RoleAssign ID="RoleAssign1" runat="server" />
            </fieldset>
        </asp:WizardStep>
        <asp:WizardStep runat="server" Title="分配用户组" StepType="Step">
            <fieldset>
                <legend>用户组分配</legend>
                <uc2:UserGroupAssign ID="UserGroupAssign1" runat="server" />
            </fieldset>
        </asp:WizardStep>
        <asp:WizardStep runat="server" Title="分配组织单元">
            <fieldset>
                <legend>组织单元</legend>
                <uc3:OrgAssign ID="OrgAssign1" runat="server" />
            </fieldset>
        </asp:WizardStep>
        <asp:WizardStep runat="server" Title="完成" StepType="Complete">
            创建完成
            <input onclick="self.parent.tb_remove()" type="button" value="完成" />
            <input onclick="document.href=document.href" type="button" value="继续创建用户" />
        </asp:WizardStep>
    </WizardSteps>
    <SideBarStyle Wrap="True"></SideBarStyle>
    <NavigationStyle Height="45px" />
    <StepNavigationTemplate>
        <div>
            <asp:Button ID="StepPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious"
                Text="上一步" />
            <asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" Text="下一步" />
            <asp:Button ID="StepFinishButton" runat="server" CommandName="MoveComplete" Text="完成" />
            <input type="button" onclick="javascript:self.parent.tb_remove();" value="取消" />
        </div>
    </StepNavigationTemplate>
    <StartNavigationTemplate>
        <asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" Text="下一步" />
        <input type="button" onclick="javascript:self.parent.tb_remove();" value="取消" />
    </StartNavigationTemplate>
</asp:Wizard>
